<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace app\widgets;

use yii\web\AssetBundle;

/**
 * Class EditorAsset
 * @package app\widgets
 */
class EditorAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web/editor';
    public $css = [
        'themes/default/default.css',
        'plugins/code/prettify.css',
    ];
    public $js = [
        'kindeditor.js',
        'lang/zh_CN.js',
        'plugins/code/prettify.js',
    ];
    public $jsOptions = [
        'position' => \yii\web\View::POS_HEAD,
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
    ];
}